﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Resources;
using System.Text;
using AiFrame.InterfaceLib.Policy.ProductLine;

namespace AiFrameDemo.Policy.ProductLine.Standard
{
    public class StandardProductLine: IProductLine
    {
        private ResourceManager _resourceManager;

        public StandardProductLine()
        {
            _resourceManager =
                new ResourceManager("AiFrameDemo.Policy.ProductLine.Standard.Properties.Resources",
                                    this.GetType().Assembly);
        }

        public Image GetLogo()
        {
            // Unser Testprojekt benötigt kein Logo.
            return null;
        }

        public ProductFamily GetProductLine()
        {
            return ProductFamily.Standard;
        }

        public string ProgramName()
        {
            return "AiFrame CRM Demo Standard Edition";
        }

        public Icon Icon()
        {
            return (System.Drawing.Icon)_resourceManager.GetObject("aiframe_icon");
        }
    }
}
